package com.example.storm.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * 
* @Title: ApplicationConfiguration
* @Description: 
* 获取application文件的信息
* @Version:1.0.0  
* @author pancm
* @date 2018年4月19日
 */
@Data
@Configuration
public class ApplicationConfiguration {
	@Value("${kafka.topicName}")
    private String topicName; 
		
	@Value("${kafka.servers}")
    private String servers;

	@Value("${kafka.maxPollRecords}")
    private int maxPollRecords; 
		
	@Value("${kafka.commitRule}")
    private String commitRule;
	
	@Value("${kafka.autoCommit}")
	private String autoCommit;

	@Value("${kafka.groupId}")
    private String groupId;
}